package com.kzx.blog.service.model;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;

/**
 * @author kongz
 * @version 1.0 2021/12/9 16:16
 * @description 新增文章参数
 */
@Data
public class BlogAddParam {

    @Range(min = 0, max = 1, message = "错误的文章类型传入")
    private int type;

    @NotEmpty(message = "文章标题不能为空")
    private String title;

    @NotEmpty(message = "文章内容不能为空")
    private String content;

}
